package com.zHan.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zHan.sky.dto.DishDto;
import com.zHan.sky.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    //新增菜品，操作dish和dish_flavor两张表
    public void saveWithFlavor(DishDto dishDto);

    //查询菜品和对应的口味
    public DishDto getByIdWithFlavor(Long id);

    //修改菜品和对应的口味
    public void updateWithFlavor(DishDto dishDto);

    //删除菜品和对应的口味
    public void deleteWithFlavor(List<Long> ids);

    // 得到各个状态的菜品数量
    Integer getStatusCount(Integer status);
}
